<?php

class Controller {
	

	
	public function display($view) {
		$template = $this->fetch($view);
		echo $template;
	}
	
	public function fetch($view) {
		ob_clean();
		
		$path = DIR_VIEWS . '/' . $view . ".ctp";
		
		include_once $path;
		return ob_get_clean();
	}
}

?>